package com.ljy.service.impl;

import com.ljy.dao.Device_Dao;
import com.ljy.dao.Dht_Dao;
import com.ljy.pojo.Dht;
import com.ljy.service.Dht_Service;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service
public class Dht_impl implements Dht_Service {

    @Resource
    Dht_Dao dht_dao;


    @Override
    public int adddht(int c, int h, int id) throws Exception {
        return dht_dao.adddht(c, h , id);
    }

    @Override
    public int upddht(int c, int h,int id) throws Exception {
        return dht_dao.upddht(c, h , id);
    }

    @Override
    public Dht seldht(int id) throws Exception {
        return dht_dao.seldht(id);
    }

//    @Override
//    public List<Dht> listdht(int id) throws Exception {
//        return dht_dao.listdht(id);
//    }
}
